package com.service.imp;

import com.mapper.XiangQingMapper_db;
import com.pojo.XiangQing_db;
import com.service.XiangQingService_db;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiangQingServiceImp_db implements XiangQingService_db {

    @Autowired
    private XiangQingMapper_db xiangQingMapperDb;

    @Override
    public List<XiangQing_db> listAll() {
        return xiangQingMapperDb.listAll();
    }

    @Override
    public XiangQing_db findById(Integer xKid) {
        return xiangQingMapperDb.findById(xKid);
    }

    @Override
    public Integer add(XiangQing_db xiangQingDb) {
        return xiangQingMapperDb.add(xiangQingDb);
    }

    @Override
    public Integer update(XiangQing_db xiangQingDb) {
        return xiangQingMapperDb.update(xiangQingDb);
    }

    @Override
    public Integer del(Integer xId) {
        return xiangQingMapperDb.del(xId);
    }
}
